import java.util.Scanner;

public class Java002 {
    public static void main(String[] args) {
        String s = new String();
        Scanner sc = new Scanner(System.in);
        s=sc.nextLine();//只能输入数字
        int number=fun(s);
        System.out.println(number);
    }
    public static int fun(String s){
        int num=0;
        for(int i=0;i<s.length();i++){
            switch (s.charAt(i)){
                case '0':  num=num*10+0; break;
                case '1':  num=num*10+1; break;
                case '2':  num=num*10+2; break;
                case '3':  num=num*10+3; break;
                case '4':  num=num*10+4; break;
                case '5':  num=num*10+5; break;
                case '6':  num=num*10+6; break;
                case '7':  num=num*10+7; break;
                case '8':  num=num*10+8; break;
                case '9':  num=num*10+9; break;
            }
        }
        return num;

    }
}
// 将字符串转换成整数